Fixed lock/unlockMetaboxes function