This won't actually separate the zval.
$opts = array("unlock" => array(42)); and pass it in as the 3rd argument:
array(1) {
  ["nolock"]=>
  &UNKNOWN:0
}