Implement packages.set_locks action (fate#312359)