correct locking of user "pi"