I want to synchronize processes based on lock files (/ socket files). These files should only be removable by their creator user.
There are plenty of choices:
/dev/shm
/var/lock
/run/lock
/run/user/<UID>
/tmp
What's the best location for this purpose? And what way are above locations meant to be used for?