[v2.3-stable] Improve Locking
This is a backport of !885 (merged). I consider this a bugfix because it does not change functionality but removes undesired locking of the APSQ core. Physics is untouched, so this can go into a patch release I would say. Diverging opinions?