Can I manually set or remove object locks?

No, you can't manually set or remove object locks. Locks are automatically set when you create or modify objects in a sandbox, and automatically released when you publish or delete the sandbox that holds the locks.