-Minor code cleanup for resource locks