Fixed release not updating Lock._acquiredLocks