Implement packages.setLocks action (fate#312359)